<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Ajouter Infraction</title>
</head>
<body>
<a href='<%= response.encodeURL("index.jsp") %>'><b>Main page</b></a><br>
<%
    if (request.getParameter("Erreur") != null) {
		if(request.getParameter("Erreur").equals("Desc"))
			out.println("<span style=\"color: red;\">Entrez une description </span>");
		else
			out.println("<span style=\"color: red;\">Entrez un niveau entre 1 et 10</span>");
    }
%>
 <form id="insertForm"  method="post" action="AjouterInfraction">
  Desription: <INPUT TYPE="TEXT" NAME="description"><BR>
  Niveau: <INPUT type="NUMBER" NAME="niveau" value="1" min="1" max="10"><BR>
  <input type="submit" value="Ajouter"/>
 </form>
</body>
</html>